package jvm;

import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * Created by User on 2017/10/18.
 */
public class Test {


    public static void main(String[] args) throws UnsupportedEncodingException {


    }

    private static void OutOfMemoryErrorHead() {
        List list = new ArrayList();
        for (int i = 0; i < 25; i++) {
            list.add(new byte[1024 * 1024]);
        }
    }

    private static void StackOverFlowError(int a) {
        if (a > 10000) {
            return;
        }
        long b = 11111111111L;
        StackOverFlowError(++a);
    }
}
